<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::on_nurbs::NurbsSolve类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1on__nurbs_1_1_nurbs_solve.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1on__nurbs_1_1_nurbs_solve-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::on_nurbs::NurbsSolve类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Solving the linear system of equations using Eigen or UmfPack. (can be defined in on_nurbs.cmake)  
 <a href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="nurbs__solve_8h_source.html">nurbs_solve.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a261706246cfc4ba70535f7948020ceb5"><td class="memItemLeft" align="right" valign="top"><a id="a261706246cfc4ba70535f7948020ceb5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a261706246cfc4ba70535f7948020ceb5">NurbsSolve</a> ()</td></tr>
<tr class="memdesc:a261706246cfc4ba70535f7948020ceb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor <br /></td></tr>
<tr class="separator:a261706246cfc4ba70535f7948020ceb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28a155babd6c0a7f91cf5e35408f708f"><td class="memItemLeft" align="right" valign="top"><a id="a28a155babd6c0a7f91cf5e35408f708f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a28a155babd6c0a7f91cf5e35408f708f">assign</a> (unsigned rows, unsigned cols, unsigned dims)</td></tr>
<tr class="memdesc:a28a155babd6c0a7f91cf5e35408f708f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign size and dimension (2D, 3D) of system of equations. <br /></td></tr>
<tr class="separator:a28a155babd6c0a7f91cf5e35408f708f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7f77160ee823590bb8e5c294a223321"><td class="memItemLeft" align="right" valign="top"><a id="ac7f77160ee823590bb8e5c294a223321"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#ac7f77160ee823590bb8e5c294a223321">K</a> (unsigned i, unsigned j, double v)</td></tr>
<tr class="memdesc:ac7f77160ee823590bb8e5c294a223321"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set value for system matrix K (stiffness matrix, basis functions) <br /></td></tr>
<tr class="separator:ac7f77160ee823590bb8e5c294a223321"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e546d4e2f1240a6294bd6351668457e"><td class="memItemLeft" align="right" valign="top"><a id="a7e546d4e2f1240a6294bd6351668457e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a7e546d4e2f1240a6294bd6351668457e">x</a> (unsigned i, unsigned j, double v)</td></tr>
<tr class="memdesc:a7e546d4e2f1240a6294bd6351668457e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set value for state vector x (control points) <br /></td></tr>
<tr class="separator:a7e546d4e2f1240a6294bd6351668457e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a203ced3d103d3f6bb166f80739ad9827"><td class="memItemLeft" align="right" valign="top"><a id="a203ced3d103d3f6bb166f80739ad9827"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a203ced3d103d3f6bb166f80739ad9827">f</a> (unsigned i, unsigned j, double v)</td></tr>
<tr class="memdesc:a203ced3d103d3f6bb166f80739ad9827"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set value for target vector f (force vector) <br /></td></tr>
<tr class="separator:a203ced3d103d3f6bb166f80739ad9827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a19943660ec14dd616eda718ab80e45"><td class="memItemLeft" align="right" valign="top"><a id="a2a19943660ec14dd616eda718ab80e45"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a2a19943660ec14dd616eda718ab80e45">K</a> (unsigned i, unsigned j)</td></tr>
<tr class="memdesc:a2a19943660ec14dd616eda718ab80e45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value for system matrix K (stiffness matrix, basis functions) <br /></td></tr>
<tr class="separator:a2a19943660ec14dd616eda718ab80e45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd0f79057ebdb0cb95edad861bfb242d"><td class="memItemLeft" align="right" valign="top"><a id="abd0f79057ebdb0cb95edad861bfb242d"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#abd0f79057ebdb0cb95edad861bfb242d">x</a> (unsigned i, unsigned j)</td></tr>
<tr class="memdesc:abd0f79057ebdb0cb95edad861bfb242d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value for state vector x (control points) <br /></td></tr>
<tr class="separator:abd0f79057ebdb0cb95edad861bfb242d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fd0c8c363c3573f9070f3af52165044"><td class="memItemLeft" align="right" valign="top"><a id="a5fd0c8c363c3573f9070f3af52165044"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a5fd0c8c363c3573f9070f3af52165044">f</a> (unsigned i, unsigned j)</td></tr>
<tr class="memdesc:a5fd0c8c363c3573f9070f3af52165044"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value for target vector f (force vector) <br /></td></tr>
<tr class="separator:a5fd0c8c363c3573f9070f3af52165044"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ee965ac49c3725289eb9b99f37b6e63"><td class="memItemLeft" align="right" valign="top"><a id="a4ee965ac49c3725289eb9b99f37b6e63"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a4ee965ac49c3725289eb9b99f37b6e63">resize</a> (unsigned rows)</td></tr>
<tr class="memdesc:a4ee965ac49c3725289eb9b99f37b6e63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resize target vector f (force vector) <br /></td></tr>
<tr class="separator:a4ee965ac49c3725289eb9b99f37b6e63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a007ec0fbd0caa2ca1105ef91dca05ccd"><td class="memItemLeft" align="right" valign="top"><a id="a007ec0fbd0caa2ca1105ef91dca05ccd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a007ec0fbd0caa2ca1105ef91dca05ccd">printK</a> ()</td></tr>
<tr class="memdesc:a007ec0fbd0caa2ca1105ef91dca05ccd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print system matrix K (stiffness matrix, basis functions) <br /></td></tr>
<tr class="separator:a007ec0fbd0caa2ca1105ef91dca05ccd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a684ca410bde2c098c9f277810c4f3b10"><td class="memItemLeft" align="right" valign="top"><a id="a684ca410bde2c098c9f277810c4f3b10"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a684ca410bde2c098c9f277810c4f3b10">printX</a> ()</td></tr>
<tr class="memdesc:a684ca410bde2c098c9f277810c4f3b10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print state vector x (control points) <br /></td></tr>
<tr class="separator:a684ca410bde2c098c9f277810c4f3b10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd3c73c381d511301d359107b17725e7"><td class="memItemLeft" align="right" valign="top"><a id="acd3c73c381d511301d359107b17725e7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#acd3c73c381d511301d359107b17725e7">printF</a> ()</td></tr>
<tr class="memdesc:acd3c73c381d511301d359107b17725e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print target vector f (force vector) <br /></td></tr>
<tr class="separator:acd3c73c381d511301d359107b17725e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc97c4c06bd8945dc17d74627db0e9e3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#abc97c4c06bd8945dc17d74627db0e9e3">solve</a> ()</td></tr>
<tr class="memdesc:abc97c4c06bd8945dc17d74627db0e9e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solves the system of equations with respect to x.  <a href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#abc97c4c06bd8945dc17d74627db0e9e3">更多...</a><br /></td></tr>
<tr class="separator:abc97c4c06bd8945dc17d74627db0e9e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fa57526b8fe3126a32bfbffe632c0e6"><td class="memItemLeft" align="right" valign="top"><a id="a8fa57526b8fe3126a32bfbffe632c0e6"></a>
Eigen::MatrixXd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a8fa57526b8fe3126a32bfbffe632c0e6">diff</a> ()</td></tr>
<tr class="memdesc:a8fa57526b8fe3126a32bfbffe632c0e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the difference between solution K*x and target f <br /></td></tr>
<tr class="separator:a8fa57526b8fe3126a32bfbffe632c0e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70b6eb9dcea4c9625b4d288a529e0a33"><td class="memItemLeft" align="right" valign="top"><a id="a70b6eb9dcea4c9625b4d288a529e0a33"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#a70b6eb9dcea4c9625b4d288a529e0a33">setQuiet</a> (bool val)</td></tr>
<tr class="memdesc:a70b6eb9dcea4c9625b4d288a529e0a33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable/Disable debug outputs in console. <br /></td></tr>
<tr class="separator:a70b6eb9dcea4c9625b4d288a529e0a33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae35c1d2ad26b05222ed4747d8f2394ac"><td class="memItemLeft" align="right" valign="top"><a id="ae35c1d2ad26b05222ed4747d8f2394ac"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html#ae35c1d2ad26b05222ed4747d8f2394ac">getSize</a> (unsigned &amp;rows, unsigned &amp;cols, unsigned &amp;dims)</td></tr>
<tr class="memdesc:ae35c1d2ad26b05222ed4747d8f2394ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">get size of system <br /></td></tr>
<tr class="separator:ae35c1d2ad26b05222ed4747d8f2394ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a05ef627a66fe07e8ca0f3a26d625ca50"><td class="memItemLeft" align="right" valign="top"><a id="a05ef627a66fe07e8ca0f3a26d625ca50"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_quiet</b></td></tr>
<tr class="separator:a05ef627a66fe07e8ca0f3a26d625ca50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ea07e4cec8a8920da76f7d948fead47"><td class="memItemLeft" align="right" valign="top"><a id="a1ea07e4cec8a8920da76f7d948fead47"></a>
<a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html">SparseMat</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_Ksparse</b></td></tr>
<tr class="separator:a1ea07e4cec8a8920da76f7d948fead47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2254362f8e8f5d13bb2a89b088330c2"><td class="memItemLeft" align="right" valign="top"><a id="af2254362f8e8f5d13bb2a89b088330c2"></a>
Eigen::MatrixXd&#160;</td><td class="memItemRight" valign="bottom"><b>m_Keig</b></td></tr>
<tr class="separator:af2254362f8e8f5d13bb2a89b088330c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a612cbbfd7b2a0d85e7310de38ead3c5e"><td class="memItemLeft" align="right" valign="top"><a id="a612cbbfd7b2a0d85e7310de38ead3c5e"></a>
Eigen::MatrixXd&#160;</td><td class="memItemRight" valign="bottom"><b>m_xeig</b></td></tr>
<tr class="separator:a612cbbfd7b2a0d85e7310de38ead3c5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bab15d091b3780930dd3bf2b5aedbad"><td class="memItemLeft" align="right" valign="top"><a id="a2bab15d091b3780930dd3bf2b5aedbad"></a>
Eigen::MatrixXd&#160;</td><td class="memItemRight" valign="bottom"><b>m_feig</b></td></tr>
<tr class="separator:a2bab15d091b3780930dd3bf2b5aedbad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Solving the linear system of equations using Eigen or UmfPack. (can be defined in on_nurbs.cmake) </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="abc97c4c06bd8945dc17d74627db0e9e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc97c4c06bd8945dc17d74627db0e9e3">&#9670;&nbsp;</a></span>solve()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::on_nurbs::NurbsSolve::solve </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Solves the system of equations with respect to x. </p>
<ul>
<li>Using UmfPack incredibly speeds up this function. <br  />
 </li>
</ul>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>surface/include/pcl/surface/on_nurbs/<a class="el" href="nurbs__solve_8h_source.html">nurbs_solve.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>on_nurbs</b></li><li class="navelem"><a class="el" href="classpcl_1_1on__nurbs_1_1_nurbs_solve.html">NurbsSolve</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
